package com.jason.orc.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
@Data
@Accessors(chain = true)
public class TencentOrcVo {


    /**
     * errorcode : 0
     * errormsg : OK
     * items : [{"itemcoord":{"x":1,"y":0,"width":279,"height":19},"itemconf":0.861793696880341,"itemstring":"西雅图1: 162. 245. 239.74","coords":[],"words":[{"character":"西","confidence":0.999976873397827},{"character":"雅","confidence":0.9998779296875},{"character":"图","confidence":0.993619501590729},{"character":"1","confidence":0.990659892559052},{"character":":","confidence":0.977067708969116},{"character":"","confidence":1},{"character":"1","confidence":0.999416828155518},{"character":"6","confidence":0.999818861484528},{"character":"2","confidence":0.999975681304932},{"character":".","confidence":0.999894142150879},{"character":"","confidence":1},{"character":"2","confidence":0.999985098838806},{"character":"4","confidence":0.999985933303833},{"character":"5","confidence":0.999910950660706},{"character":".","confidence":0.999982714653015},{"character":"","confidence":1},{"character":"2","confidence":0.999975442886353},{"character":"3","confidence":0.999965190887451},{"character":"9","confidence":0.999987602233887},{"character":".","confidence":0.999743521213531},{"character":"7","confidence":0.999672055244446},{"character":"4","confidence":0.999945759773254}],"candword":[],"parag":{"word_size":17,"parag_no":0},"coordpoint":{"x":[1,0,279,0,279,18,1,18]},"wordcoordpoint":[]},{"itemcoord":{"x":372,"y":0,"width":120,"height":18},"itemconf":0.9979647397995,"itemstring":"端口:23456","coords":[],"words":[{"character":"端","confidence":0.999855160713196},{"character":"口","confidence":0.999945521354675},{"character":":","confidence":0.984417676925659},{"character":"2","confidence":0.999991655349731},{"character":"3","confidence":0.999891877174377},{"character":"4","confidence":0.999983549118042},{"character":"5","confidence":0.999780118465424},{"character":"6","confidence":0.999852538108826}],"candword":[],"parag":{"word_size":16,"parag_no":2},"coordpoint":{"x":[372,0,491,0,491,17,372,17]},"wordcoordpoint":[]},{"itemcoord":{"x":632,"y":0,"width":252,"height":21},"itemconf":0.896568179130554,"itemstring":"密码: dongtaiwang. com","coords":[],"words":[{"character":"密","confidence":0.999969482421875},{"character":"码","confidence":0.999992489814758},{"character":":","confidence":0.956681132316589},{"character":"","confidence":1},{"character":"d","confidence":0.999853491783142},{"character":"o","confidence":0.999968409538269},{"character":"n","confidence":0.999984502792358},{"character":"g","confidence":0.999991059303284},{"character":"t","confidence":0.999996542930603},{"character":"a","confidence":0.999998569488525},{"character":"i","confidence":0.999941825866699},{"character":"w","confidence":0.999973297119141},{"character":"a","confidence":0.999992609024048},{"character":"n","confidence":0.99999213218689},{"character":"g","confidence":0.99999463558197},{"character":".","confidence":0.999658703804016},{"character":"","confidence":1},{"character":"c","confidence":0.985177934169769},{"character":"o","confidence":0.990700304508209},{"character":"m","confidence":0.999496698379517}],"candword":[],"parag":{"word_size":17,"parag_no":4},"coordpoint":{"x":[632,0,883,0,883,20,632,20]},"wordcoordpoint":[]},{"itemcoord":{"x":2,"y":33,"width":248,"height":20},"itemconf":0.885559320449829,"itemstring":"加密方式: AES- 256-CFB","coords":[],"words":[{"character":"加","confidence":0.999716579914093},{"character":"密","confidence":0.999034523963928},{"character":"方","confidence":0.999984860420227},{"character":"式","confidence":0.999999523162842},{"character":":","confidence":0.947815537452698},{"character":"","confidence":1},{"character":"A","confidence":0.9999760389328},{"character":"E","confidence":0.999981284141541},{"character":"S","confidence":0.999961614608765},{"character":"-","confidence":0.996939063072205},{"character":"","confidence":1},{"character":"2","confidence":0.999987244606018},{"character":"5","confidence":0.999756157398224},{"character":"6","confidence":0.999979019165039},{"character":"-","confidence":0.99992299079895},{"character":"C","confidence":0.999638557434082},{"character":"F","confidence":0.997648656368256},{"character":"B","confidence":0.999727070331573}],"candword":[],"parag":{"word_size":17,"parag_no":0},"coordpoint":{"x":[2,33,249,33,249,52,2,52]},"wordcoordpoint":[]},{"itemcoord":{"x":367,"y":34,"width":144,"height":21},"itemconf":0.789648294448853,"itemstring":"协议: origin ","coords":[],"words":[{"character":"协","confidence":0.99999988079071},{"character":"议","confidence":0.999987959861755},{"character":":","confidence":0.992087543010712},{"character":"","confidence":1},{"character":"o","confidence":0.995510816574097},{"character":"r","confidence":0.999978303909302},{"character":"i","confidence":0.999976634979248},{"character":"g","confidence":0.999998807907104},{"character":"i","confidence":0.6986283659935},{"character":"n","confidence":0.99996292591095},{"character":"","confidence":1}],"candword":[],"parag":{"word_size":16,"parag_no":2},"coordpoint":{"x":[367,34,510,34,510,54,367,54]},"wordcoordpoint":[]},{"itemcoord":{"x":627,"y":33,"width":261,"height":21},"itemconf":0.80938047170639,"itemstring":"混淆: plain ( 协议混淆","coords":[],"words":[{"character":"混","confidence":0.99977046251297},{"character":"淆","confidence":0.995137989521027},{"character":":","confidence":0.994412004947662},{"character":"","confidence":1},{"character":"p","confidence":0.999949336051941},{"character":"l","confidence":0.964089691638947},{"character":"a","confidence":0.999998450279236},{"character":"i","confidence":0.999997973442078},{"character":"n","confidence":0.999960660934448},{"character":"","confidence":1},{"character":"(","confidence":0.999437153339386},{"character":"","confidence":1},{"character":"协","confidence":0.999999642372131},{"character":"议","confidence":0.999945759773254},{"character":"混","confidence":0.999769508838654},{"character":"淆","confidence":0.997619092464447}],"candword":[],"parag":{"word_size":17,"parag_no":4},"coordpoint":{"x":[627,33,887,33,887,53,627,53]},"wordcoordpoint":[]},{"itemcoord":{"x":2,"y":65,"width":162,"height":21},"itemconf":0.987142086029053,"itemstring":"兼容原SS版)。","coords":[],"words":[{"character":"兼","confidence":0.999972820281982},{"character":"容","confidence":0.999795377254486},{"character":"原","confidence":0.999953746795654},{"character":"S","confidence":0.994877815246582},{"character":"S","confidence":0.998881757259369},{"character":"版","confidence":0.999935269355774},{"character":")","confidence":0.998383760452271},{"character":"。","confidence":0.905336380004883}],"candword":[],"parag":{"word_size":17,"parag_no":0},"coordpoint":{"x":[2,65,163,65,163,85,2,85]},"wordcoordpoint":[]},{"itemcoord":{"x":1,"y":134,"width":96,"height":19},"itemconf":0.996500492095947,"itemstring":"洛杉矶2:","coords":[],"words":[{"character":"洛","confidence":0.999378204345703},{"character":"杉","confidence":0.99988329410553},{"character":"矶","confidence":0.986793339252472},{"character":"2","confidence":0.999940156936646},{"character":":","confidence":0.996507585048676}],"candword":[],"parag":{"word_size":16,"parag_no":1},"coordpoint":{"x":[1,134,96,134,96,152,1,152]},"wordcoordpoint":[]},{"itemcoord":{"x":119,"y":133,"width":143,"height":20},"itemconf":0.999901235103607,"itemstring":"67.21.94.192","coords":[],"words":[{"character":"6","confidence":0.999914526939392},{"character":"7","confidence":0.999925136566162},{"character":".","confidence":0.999818623065948},{"character":"2","confidence":0.999936699867249},{"character":"1","confidence":0.999802887439728},{"character":".","confidence":0.999814331531525},{"character":"9","confidence":0.999978423118591},{"character":"4","confidence":0.999984622001648},{"character":".","confidence":0.999720990657806},{"character":"1","confidence":0.999963879585266},{"character":"9","confidence":0.999992251396179},{"character":"2","confidence":0.999962210655212}],"candword":[],"parag":{"word_size":16,"parag_no":1},"coordpoint":{"x":[119,133,261,133,261,152,119,152]},"wordcoordpoint":[]},{"itemcoord":{"x":367,"y":133,"width":119,"height":19},"itemconf":0.892193198204041,"itemstring":"端口:45678","coords":[],"words":[{"character":"端","confidence":0.999850392341614},{"character":"口","confidence":0.999881505966187},{"character":":","confidence":0.998358547687531},{"character":"4","confidence":0.61020964384079},{"character":"5","confidence":0.52943629026413},{"character":"6","confidence":0.999966740608215},{"character":"7","confidence":0.999945282936096},{"character":"8","confidence":0.999897599220276}],"candword":[],"parag":{"word_size":17,"parag_no":3},"coordpoint":{"x":[367,133,485,133,485,151,367,151]},"wordcoordpoint":[]},{"itemcoord":{"x":628,"y":134,"width":252,"height":20},"itemconf":0.862233638763428,"itemstring":"密码: dongtaiwang. com","coords":[],"words":[{"character":"密","confidence":0.999749481678009},{"character":"码","confidence":0.999997615814209},{"character":":","confidence":0.987331092357636},{"character":"","confidence":1},{"character":"d","confidence":0.999964714050293},{"character":"o","confidence":0.999972939491272},{"character":"n","confidence":0.863522827625275},{"character":"g","confidence":0.999994039535522},{"character":"t","confidence":0.999991774559021},{"character":"a","confidence":0.999989986419678},{"character":"i","confidence":0.999958992004395},{"character":"w","confidence":0.999992251396179},{"character":"a","confidence":0.689166784286499},{"character":"n","confidence":0.999943852424622},{"character":"g","confidence":0.999990940093994},{"character":".","confidence":0.707805693149567},{"character":"","confidence":1},{"character":"c","confidence":0.998882472515106},{"character":"o","confidence":0.998610973358154},{"character":"m","confidence":0.99980491399765}],"candword":[],"parag":{"word_size":17,"parag_no":5},"coordpoint":{"x":[628,134,879,134,879,153,628,153]},"wordcoordpoint":[]},{"itemcoord":{"x":2,"y":167,"width":248,"height":20},"itemconf":0.885559320449829,"itemstring":"加密方式: AES- 256-CFB","coords":[],"words":[{"character":"加","confidence":0.999716579914093},{"character":"密","confidence":0.999034523963928},{"character":"方","confidence":0.999984860420227},{"character":"式","confidence":0.999999523162842},{"character":":","confidence":0.947815537452698},{"character":"","confidence":1},{"character":"A","confidence":0.9999760389328},{"character":"E","confidence":0.999981284141541},{"character":"S","confidence":0.999961614608765},{"character":"-","confidence":0.996939063072205},{"character":"","confidence":1},{"character":"2","confidence":0.999987244606018},{"character":"5","confidence":0.999756157398224},{"character":"6","confidence":0.999979019165039},{"character":"-","confidence":0.99992299079895},{"character":"C","confidence":0.999638557434082},{"character":"F","confidence":0.997648656368256},{"character":"B","confidence":0.999727070331573}],"candword":[],"parag":{"word_size":16,"parag_no":1},"coordpoint":{"x":[2,167,249,167,249,186,2,186]},"wordcoordpoint":[]},{"itemcoord":{"x":366,"y":168,"width":145,"height":21},"itemconf":0.864811599254608,"itemstring":"协议: origin","coords":[],"words":[{"character":"协","confidence":1},{"character":"议","confidence":0.999989151954651},{"character":":","confidence":0.991128921508789},{"character":"","confidence":1},{"character":"o","confidence":0.994482934474945},{"character":"r","confidence":0.999999046325684},{"character":"i","confidence":0.662556350231171},{"character":"g","confidence":0.999999046325684},{"character":"i","confidence":0.999983191490173},{"character":"n","confidence":0.999977231025696}],"candword":[],"parag":{"word_size":17,"parag_no":3},"coordpoint":{"x":[366,168,510,168,510,188,366,188]},"wordcoordpoint":[]},{"itemcoord":{"x":627,"y":167,"width":261,"height":20},"itemconf":0.80846118927002,"itemstring":"混淆: plain ( 协议混淆","coords":[],"words":[{"character":"混","confidence":0.999286234378815},{"character":"淆","confidence":0.982330799102783},{"character":":","confidence":0.98669421672821},{"character":"","confidence":1},{"character":"p","confidence":0.999932050704956},{"character":"l","confidence":0.997721374034882},{"character":"a","confidence":0.999997615814209},{"character":"i","confidence":0.999996900558472},{"character":"n","confidence":0.999873399734497},{"character":"","confidence":1},{"character":"(","confidence":0.9997518658638},{"character":"","confidence":1},{"character":"协","confidence":0.999998927116394},{"character":"议","confidence":0.999819695949554},{"character":"混","confidence":0.999795734882355},{"character":"淆","confidence":0.970179438591003}],"candword":[],"parag":{"word_size":17,"parag_no":5},"coordpoint":{"x":[627,167,887,167,887,186,627,186]},"wordcoordpoint":[]},{"itemcoord":{"x":2,"y":201,"width":159,"height":20},"itemconf":0.816457509994507,"itemstring":"兼容原SS版) s","coords":[],"words":[{"character":"兼","confidence":0.999947309494019},{"character":"容","confidence":0.999942064285278},{"character":"原","confidence":0.999975919723511},{"character":"S","confidence":0.981795132160187},{"character":"S","confidence":0.99902880191803},{"character":"版","confidence":0.999965667724609},{"character":")","confidence":0.999096870422363},{"character":"","confidence":1},{"character":"s","confidence":0.368365824222565}],"candword":[],"parag":{"word_size":16,"parag_no":1},"coordpoint":{"x":[2,201,160,201,160,220,2,220]},"wordcoordpoint":[]}]
     * session_id :
     * angle : 0
     * question_block : []
     * class : []
     * recognize_warn_code : []
     * recognize_warn_msg : []
     * recognize_warn_code_conf : []
     */

    private int errorcode;
    private String errormsg;
    private String session_id;
    private int angle;
    private List<ItemsBean> items;
    private List<?> question_block;
    @JSONField(name="class")
    private List<?> classX;
    private List<?> recognize_warn_code;
    private List<?> recognize_warn_msg;
    private List<?> recognize_warn_code_conf;


    @Data
    @Accessors(chain = true)
    public static class ItemsBean {
        /**
         * itemcoord : {"x":1,"y":0,"width":279,"height":19}
         * itemconf : 0.861793696880341
         * itemstring : 西雅图1: 162. 245. 239.74
         * coords : []
         * words : [{"character":"西","confidence":0.999976873397827},{"character":"雅","confidence":0.9998779296875},{"character":"图","confidence":0.993619501590729},{"character":"1","confidence":0.990659892559052},{"character":":","confidence":0.977067708969116},{"character":"","confidence":1},{"character":"1","confidence":0.999416828155518},{"character":"6","confidence":0.999818861484528},{"character":"2","confidence":0.999975681304932},{"character":".","confidence":0.999894142150879},{"character":"","confidence":1},{"character":"2","confidence":0.999985098838806},{"character":"4","confidence":0.999985933303833},{"character":"5","confidence":0.999910950660706},{"character":".","confidence":0.999982714653015},{"character":"","confidence":1},{"character":"2","confidence":0.999975442886353},{"character":"3","confidence":0.999965190887451},{"character":"9","confidence":0.999987602233887},{"character":".","confidence":0.999743521213531},{"character":"7","confidence":0.999672055244446},{"character":"4","confidence":0.999945759773254}]
         * candword : []
         * parag : {"word_size":17,"parag_no":0}
         * coordpoint : {"x":[1,0,279,0,279,18,1,18]}
         * wordcoordpoint : []
         */

        private ItemcoordBean itemcoord;
        private double itemconf;
        private String itemstring;
        private ParagBean parag;
        private CoordpointBean coordpoint;
        private List<?> coords;
        private List<WordsBean> words;
        private List<?> candword;
        private List<?> wordcoordpoint;

        @Data
        @Accessors(chain = true)
        public static class ItemcoordBean {
            /**
             * x : 1
             * y : 0
             * width : 279
             * height : 19
             */

            private int x;
            private int y;
            private int width;
            private int height;

        }

        @Data
        @Accessors(chain = true)
        public static class ParagBean {
            /**
             * word_size : 17
             * parag_no : 0
             */

            private int word_size;
            private int parag_no;


        }

        @Data
        @Accessors(chain = true)
        public static class CoordpointBean {
            private List<Integer> x;
        }

        @Data
        @Accessors(chain = true)
        public static class WordsBean {
            /**
             * character : 西
             * confidence : 0.999976873397827
             */
            private String character;
            private double confidence;
        }
    }
}
